<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('股票财务利润表列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>TS代码：</label>
                                <input type="text" name="tsCode"/>
                            </li>
                            <li>
                                <label>公告日期：</label>
                                <input type="text" name="annDate"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="stock:stockfinincome:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="stock:stockfinincome:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="stock:stockfinincome:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="stock:stockfinincome:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('stock:stockfinincome:edit')}]];
        var removeFlag = [[${@permission.hasPermi('stock:stockfinincome:remove')}]];
        var prefix = ctx + "stock/stockfinincome";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "股票财务利润表",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'tsCode',
                    title: 'TS代码',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'annDate',
                    title: '公告日期',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'fAnnDate',
                    title: '实际公告日期',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'endDate',
                    title: '报告期',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'reportType',
                    title: '报告类型',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'compType',
                    title: '公司类型',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'basicEps',
                    title: '基本每股收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'dilutedEps',
                    title: '稀释每股收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'totalRevenue',
                    title: '营业总收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'revenue',
                    title: '营业收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'intIncome',
                    title: '利息收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'premEarned',
                    title: '已赚保费',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'commIncome',
                    title: '手续费及佣金收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nCommisIncome',
                    title: '手续费及佣金净收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nOthIncome',
                    title: '其他经营净收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nOthBIncome',
                    title: '加:其他业务净收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'premIncome',
                    title: '保险业务收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'outPrem',
                    title: '减:分出保费',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'unePremReser',
                    title: '提取未到期责任准备金',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'reinsIncome',
                    title: '其中:分保费收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nSecTbIncome',
                    title: '代理买卖证券业务净收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nSecUwIncome',
                    title: '证券承销业务净收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nAssetMgIncome',
                    title: '受托客户资产管理业务净收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'othBIncome',
                    title: '其他业务收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'fvValueChgGain',
                    title: '加:公允价值变动净收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'investIncome',
                    title: '加:投资净收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'assInvestIncome',
                    title: '其中:对联营企业和合营企业的投资收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'forexGain',
                    title: '加:汇兑净收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'totalCogs',
                    title: '营业总成本',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'operCost',
                    title: '减:营业成本',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'intExp',
                    title: '减:利息支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'commExp',
                    title: '减:手续费及佣金支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'bizTaxSurchg',
                    title: '减:营业税金及附加',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'sellExp',
                    title: '减:销售费用',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'adminExp',
                    title: '减:管理费用',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'finExp',
                    title: '减:财务费用',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'assetsImpairLoss',
                    title: '减:资产减值损失',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'premRefund',
                    title: '退保金',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'compensPayout',
                    title: '赔付总支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'reserInsurLiab',
                    title: '提取保险责任准备金',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'divPayt',
                    title: '保户红利支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'reinsExp',
                    title: '分保费用',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'operExp',
                    title: '营业支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'compensPayoutRefu',
                    title: '减:摊回赔付支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'insurReserRefu',
                    title: '减:摊回保险责任准备金',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'reinsCostRefund',
                    title: '减:摊回分保费用',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'otherBusCost',
                    title: '其他业务成本',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'operateProfit',
                    title: '营业利润',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nonOperIncome',
                    title: '加:营业外收入',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nonOperExp',
                    title: '减:营业外支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'ncaDisploss',
                    title: '其中:减:非流动资产处置净损失',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'totalProfit',
                    title: '利润总额',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'incomeTax',
                    title: '所得税费用',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nIncome',
                    title: '净利润(含少数股东损益)',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'nIncomeAttrP',
                    title: '净利润(不含少数股东损益)',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'minorityGain',
                    title: '少数股东损益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'othComprIncome',
                    title: '其他综合收益',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'tComprIncome',
                    title: '综合收益总额',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'comprIncAttrP',
                    title: '归属于母公司(或股东)的综合收益总额',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'comprIncAttrMS',
                    title: '归属于少数股东的综合收益总额',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'ebit',
                    title: '息税前利润',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'ebitda',
                    title: '息税折旧摊销前利润',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'insuranceExp',
                    title: '保险业务支出',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'undistProfit',
                    title: '年初未分配利润',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'distableProfit',
                    title: '可分配利润',
                    valign:"middle",
                    align:"center"
                },
                {
                    field: 'updateFlag',
                    title: '更新标识',
                    valign:"middle",
                    align:"center"
                },
                {
                    title: '操作',
                    valign:"middle",
                    align: 'center',
                    width: '200px',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>